<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<a href="export.php">导出</a>
<table border="1">
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>密码</th>
        <th>真实姓名</th>
        <th>工资</th>
    </tr>
    <?php foreach ($data as $key => $val): ?>
        <tr>
            <td><?php echo $val['id'] ?></td>
            <td><?php echo $val['names'] ?></td>
            <td><?php echo $val['pwd'] ?></td>
            <td><?php echo $val['realname'] ?></td>
            <td><?php echo $val['money'] ?></td>
        </tr>
    <?php endforeach ?>
</table>
</body>
</html>